package com.xuecheng.content.service;

import com.xuecheng.commons.model.dto.CourseBaseDto;
import com.xuecheng.commons.model.dto.CourseDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.CourseAuditDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.domain.CourseBase;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-07-16
 */
public interface CourseBaseService extends IService<CourseBase> {

    ResponseResult courseList(PageRequest request, CourseDto dto);

    ResponseResult upload(MultipartFile uploadFile) throws Exception;

    //保存
    ResponseResult saveCourseBase(CourseBaseDto dto);

    ResponseResult updateCourseBase(CourseBaseDto dto);

    ResponseResult updateCourse(CourseBaseDto dto);

    ResponseResult commit(Long courseBaseId);

    ResponseResult approve(CourseAuditDto dto);
}
